package com.yz.group5.med_booking.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yz.group5.med_booking.entity.Department;
import com.yz.group5.med_booking.mapper.DepartmentMapper;
import com.yz.group5.med_booking.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service  //加注解，把它放在一个容器里
public class DepartmentServiceImpl
        extends ServiceImpl<DepartmentMapper,Department>
        implements DepartmentService {
    @Override
    public List<Department> listAllDepartment() {
//        调用mapper的selectList方法查询全部科室
        return baseMapper.selectList(null);

    }
}
